package org.tom.pay.domain;

import lombok.Data;
import org.tom.basic.domain.BaseDomain;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class PayBill extends BaseDomain {
    // 购买宠物
    public static final Integer PET_BUY = 0;
    // 充值
    public static final Integer TOP_UP = 1;

    // 交易超时，未付款
    public static final Integer SATET_OUTTIME_OR_RETURN = 2;

        //支付状态
        //0 待支付
        //1 已支付
        //2 未付款交易超时关闭，或支付完成后全额退款。
        //3 取消
    public static final Integer WAIT_PAY = 0;
    public static final Integer PAY_SUCCESS=1;
    public static final Integer PAY_FAILED=2;

    private String digest;
    private BigDecimal money;
    private Integer state;
    private Date createTime;
    private Date lastPayTime;
    // 支付方式
    private Integer payChannel;
    private Date updateTime;
    private String unionPaySn;
    // 业务类型
    private Integer businessType;
    // 业务关联的外键
    private Long businessKey;
    private Long user_id;
    private String nickName;
    private String shopName;
    private Long shop_id;

}
